
package com.huaweicloud.saaslanding.install.properties;

import static com.huaweicloud.saaslanding.install.constant.ModelConstant.ELB_LISTENER_PREFIX;

import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

/**
 * 功能描述
 *
 * @since 2022-12-06
 */
@EqualsAndHashCode
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@Validated
@ConfigurationProperties(prefix = ELB_LISTENER_PREFIX)
public class ElbListener {
    /**
     * ELB 前端监听器端口号
     */
    @NotNull(message = "ELB实例的id(elb.listeners.uiPort)不能为空")
    private Integer uiPort;

    /**
     * ELB 针对于imc的网关监听器端口号
     */
    @NotNull(message = "定ELB实例的IP(elb.listeners.gatewayImcPort)不能为空")
    private Integer gatewayImcPort;

}
